package com.lin.entity.Impl;

import com.lin.entity.PersonDao;
import org.springframework.beans.factory.InitializingBean;

public class PersonDaoImpl implements PersonDao, InitializingBean {

    public void setName(String name) {
        System.out.println("Bean 实例化");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("afterPropertiesSet 执行");
    }
    public void init() {
        System.out.println("init 执行");
    }

    @Override
    public void show() {
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("show 执行");
    }
}
